//
//  BIDActivitySectionHeaderView.m
//  HJGJCommunity
//
//  Created by mal on 2017/5/25.
//  Copyright © 2017年 mal. All rights reserved.
//

#import "BIDActivitySectionHeaderView.h"

@implementation BIDActivitySectionHeaderView
@synthesize delegate;

- (void)awakeFromNib
{
    [super awakeFromNib];
    UITapGestureRecognizer *tapGR1 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(typeViewGestureHandler:)];
    [_typeView addGestureRecognizer:tapGR1];
    //
    UITapGestureRecognizer *tapGR2 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(statusViewGestureHandler:)];
    [_statusView addGestureRecognizer:tapGR2];
}

- (void)typeViewGestureHandler:(UITapGestureRecognizer *)tapGR
{
    //活动类型
    [delegate showMenuWithType:0];
}

- (void)statusViewGestureHandler:(UITapGestureRecognizer *)tapGR
{
    //活动状态
    [delegate showMenuWithType:1];
}

@end
